

from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import Unicode

from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base

from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker

from zope.sqlalchemy import ZopeTransactionExtension

from sqlalchemy import Text


from scp.modelo.models import Base

__all__ = [ 'Permiso' ]


class Permiso(Base):
    """ Clase que se mapea a la tabla de Permisos. """
    __tablename__ = 'permiso'
    id = Column(Integer, primary_key=True)
    nombre = Column(Unicode(200), unique=True)
    dominio = Column(Unicode(100))
    tipo = Column(Unicode(10))
 
